
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    background: #000;
    color: white;

    font-family: Arial, Helvetica, sans-serif;

    overflow: hidden;
}


/* =========================================
   PAGE FILM
========================================= */

.film-page {
    position: relative;

    width: 100%;
    height: 100vh;

    overflow: hidden;

    background: black;
}


/* =========================================
   IMAGE DE FOND
========================================= */

.film-background {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;
}

.film-background img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;
}


/* =========================================
   DÉGRADÉ SOMBRE
========================================= */

.film-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:

        /* gros dégradé noir gauche → droite */
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.97) 0%,
            rgba(0, 0, 0, 0.92) 18%,
            rgba(0, 0, 0, 0.72) 36%,
            rgba(0, 0, 0, 0.25) 62%,
            rgba(0, 0, 0, 0.05) 100%
        ),

        /* assombrissement du bas */
        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.25) 35%,
            transparent 65%
        );
}


/* =========================================
   CONTENU
========================================= */

.film-content {
    position: relative;

    z-index: 2;

    width: 520px;
    height: 100%;

    display: flex;
    flex-direction: column;

    /* on ne centre plus verticalement */
    justify-content: flex-start;

    padding-left: 4vw;

    /* position de tout le contenu depuis le haut */
    padding-top: 45px;
}



/* =========================================
   LOGO WSTUDIO
========================================= */

.film-logo {
    position: fixed;

    top: 20px;
    right: 25px;
    left: auto;

    width: 70px;
    height: auto;

    object-fit: contain;

    margin: 0;

    z-index: 50;

    transition: transform 0.25s ease;
}

.film-logo:hover {
    transform: scale(1.08);
}


/* =========================================
   BOUTON RETOUR
========================================= */

.back-button {
    position: fixed;

    top: 25px;
    left: 30px;

    z-index: 50;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;

    background: rgba(0,0,0,0.35);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    color: white;

    font-size: 27px;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.back-button:hover {
    background: rgba(255,255,255,0.18);

    transform: scale(1.08);

    color: white;
    text-decoration: none;
}

.back-button:visited,
.back-button:active {
    color: white;
    text-decoration: none;
}


/* =========================================
   TITRE
========================================= */

.TITRE {
    display: block;

    width: 1000px;
    max-width: 100%;
    height: auto;

    margin-top: 80px;
    margin-bottom: 50px;
}


/* =========================================
   INFOS FILM
========================================= */

.film-meta {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 17px;

    font-size: 14px;

    color: #c7c7c7;
}


/* HD */

.film-meta span:last-child {
    padding: 2px 5px;

    border: 1px solid rgba(255,255,255,0.55);

    border-radius: 3px;

    font-size: 11px;

    color: white;
}


/* =========================================
   SYNOPSIS
========================================= */

.film-description {
    max-width: 470px;

    margin-bottom: 13px;

    font-size: 15px;

    line-height: 1.48;

    color: rgba(255,255,255,0.88);
}


/* =========================================
   CASTING
========================================= */

.film-cast {
    max-width: 470px;

    margin-bottom: 25px;

    font-size: 13px;

    line-height: 1.4;

    color: rgba(255,255,255,0.55);
}


/* =========================================
   MENU
========================================= */

.film-menu {
    width: 300px;

    display: flex;

    flex-direction: column;

    gap: 5px;
}


/* =========================================
   BOUTONS
========================================= */

.film-menu button {
    width: 100%;
    height: 44px;

    border: none;

    border-radius: 3px;

    padding: 0 16px;

    text-align: left;

    background: transparent;

    color: rgba(255,255,255,0.60);

    font-size: 16px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


/* SURVOL */

.film-menu button:hover {
    background: rgba(255,255,255,0.12);

    color: white;

    transform: translateX(5px);
}


/* =========================================
   REGARDER = BOUTON PRINCIPAL
========================================= */

#watchButton {
    background: white;

    color: black;

    font-weight: 600;

    margin-bottom: 5px;
}

#watchButton:hover {
    background: rgba(255,255,255,0.82);

    color: black;
}


/* =========================================
   ANIMATION APPARITION
========================================= */

@keyframes filmAppear {

    from {
        opacity: 0;

        transform: translateY(20px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}







/* ===================================
   LECTEUR VIDEO W-STREAM
=================================== */

.STREAM-LECTEUR {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100dvh;

    background: #000;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10000;
}


.STREAM-LECTEUR[hidden] {
    display: none;
}


/* VIDEO */

#STREAM-VIDEO {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    background: #000;
}


/* BOUTON FERMER */

.STREAM-LECTEUR-FERMER {
    position: absolute;

    top: 30px;
    right: 35px;

    z-index: 10001;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;

    background: rgba(25,25,30,0.75);

    backdrop-filter: blur(12px);

    color: white;

    font-size: 24px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}


.STREAM-LECTEUR-FERMER:hover {
    background: rgba(220,35,45,0.95);

    transform: scale(1.1);
}